package com.example.commontest.service.Impl;

import com.example.commontest.service.SynchService;
import org.springframework.scheduling.annotation.AsyncResult;
import org.springframework.stereotype.Service;

/**
 * @Author huaiyu yin
 * @Date 2021/5/24 12:02 下午
 * @Version 1.0
 */
@Service
public class SynchServiceImpl implements SynchService {


    @Override
    public Integer getFollowed(Integer times) {
        Integer count = 0;
        //负责相关使用逻辑
        for (int i = 0; i < times; i++) {
            count += i;
        }
        return count;
    }

    @Override
    public Integer getAtention(Integer times) {
        Integer count = 0;
        //负责相关使用逻辑
        for (int i = 0; i < times; i++) {
            count += i;
        }
        return count;
    }
}
